package com.totoro.springboot.mybatis.service;

import com.totoro.springboot.mybatis.dao.UserDao;
import com.totoro.springboot.mybatis.model.User;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created by Niki on 2018/10/11 9:48
 */
@Service
public class UserService {
    @Resource
    UserDao userDao;

    public User findById(Integer id) {
        return userDao.findUserById(id);
    }
}
